import {createStore} from 'vuex'
const store = createStore({
    state:{
        "msginfo":{
            msgnum:0,
            msg:{}
        }
    },
    mutations:{
        setMsgNum (state){
            state.msginfo.msgnum ++
        },
        clearMsgNum (state){
            console.log('clear');
            
            state.msginfo.msgnum=0
        }

    }

})
export default store